]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Don't do any special handling for item-dragging
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 11 Sep 2013 18:21:29 +0000 (14:21 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 30 Oct 2013 17:17:39 +0000 (13:17 -0400)
The code here really only cares about new windows.

js/ui/workspacesView.js

index 085d16223fb095abde107d49ebfca9d4db220d90..90dce1ad2bcd84172bc58c8e74af02067a7d227e 100644 (file)
@@ -91,10 +91,6 @@ const WorkspacesView = new Lang.Class({
             global.window_manager.connect('switch-workspace',
                                           Lang.bind(this, this._activeWorkspaceChanged));
 
-        this._itemDragBeginId = Main.overview.connect('item-drag-begin',
-                                                      Lang.bind(this, this._dragBegin));
-        this._itemDragEndId = Main.overview.connect('item-drag-end',
-                                                     Lang.bind(this, this._dragEnd));
         this._windowDragBeginId = Main.overview.connect('window-drag-begin',
                                                         Lang.bind(this, this._dragBegin));
         this._windowDragEndId = Main.overview.connect('window-drag-end',
@@ -288,14 +284,6 @@ const WorkspacesView = new Lang.Class({
         if (this._inDrag)
             this._dragEnd();
 
-        if (this._itemDragBeginId > 0) {
-            Main.overview.disconnect(this._itemDragBeginId);
-            this._itemDragBeginId = 0;
-        }
-        if (this._itemDragEndId > 0) {
-            Main.overview.disconnect(this._itemDragEndId);
-            this._itemDragEndId = 0;
-        }
         if (this._windowDragBeginId > 0) {
             Main.overview.disconnect(this._windowDragBeginId);
             this._windowDragBeginId = 0;